package com.hou.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author shkstart
 * @create 2021-12-11-21:12
 */
@Component
@FeignClient("server-order")
public interface OrdersClient {
    @GetMapping("/eduorder/order/courseIsBuy/{userId}/{courseId}")
    public Boolean courseIsBuy(@PathVariable("userId") String userId, @PathVariable("courseId") String courseId);
}
